var totalPage;
var totalCnt;
var workListData = [];
var deleteFlag;

$(document).ready(function() {
	showLoading();
	setBaseUrl();
	$('title', parent.document).html($('title').text());
	createTableHead("workContentThead", workContentTable, search);
	search();
	setTimeout(hideLoading, 500);
})

function search(){
	$ajax('searchWorkContent?id=1', 'searchWorkContent', searchWorkContent);
}
function searchWorkContent(data){
	totalPage = data && data.totalPage || 0;
	totalCnt = data && data.totalCnt || 0;
	workListData = data && data.workList || [];
	createTableBody("workContentTbody", workContentTable, workListData);
	setTimeout(hideLoading, 500);
}